<?php
/**
 * Created by PhpStorm.
 * User: zhuyujun
 * Date: 2017/10/24
 * Time: 15:32
 */

namespace App\Api\Service\test\Models;


use Framework\BaseClass\Http\Admin\Model;
use App\Eloquent\Yiguantong\Order;
use App\Eloquent\Yiguantong\OrderBasic;
use App\Eloquent\Yiguantong\OrderProductionCategory;
use App\Eloquent\Yiguantong\OrderColourPrinting;
use App\Eloquent\Yiguantong\OrderComposite;
use App\Eloquent\Yiguantong\OrderPostProcessing;

class Models extends Model
{

    public function getOrderInfo($orderId)
    {
        return Order::where('id',$orderId)->get();
    }

    public function getOrderBasicInfo($orderId)
    {
        return OrderBasic::where('order_id',$orderId)->get();
    }

    public function getOrderProductionCategoryInfo($orderId)
    {
        return OrderProductionCategory::where('order_id',$orderId)->get();
    }

    public function getOrderColourPrintingInfo($orderId)
    {
        return OrderColourPrinting::where('order_id',$orderId)->get();
    }

    public function getOrderCompositeInfo($orderId)
    {
        return OrderComposite::where('order_id',$orderId)->get();
    }

    public function getOrderPostProcessingInfo($orderId)
    {
        return OrderPostProcessing::where('order_id',$orderId)->get();
    }

}